import 'package:flutter/material.dart';
import 'package:flutter_app_getx/page/home/home_binding.dart';
import 'package:flutter_app_getx/page/home/login_binding.dart';
import 'package:flutter_app_getx/page/tab/home.dart';
import 'package:flutter_app_getx/page/view/home_view.dart';
import 'package:flutter_app_getx/page/view/login_view.dart';
import 'package:flutter_app_getx/page/view/view2.dart';
import 'package:get/get_navigation/src/root/get_material_app.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';

main(List<String> args) {
  runApp(GetMaterialApp(
    enableLog: true,
    initialRoute: "/login",
    debugShowCheckedModeBanner: false,
    getPages: [
      GetPage(name: "/login", page: () => LoginView(), binding: LoginBinding()),
      GetPage(name: "/home", page: () => HomeView(), binding: HomeBinding()),
      GetPage(name: "/tab", page: () => MyHomePage(), binding: HomeBinding()),
    ],
  ));
}
